package com.jerkin.dubbo.service;

import com.alibaba.dubbo.config.annotation.Service;

import com.jerkin.dubbo.mapper.AccountInfoMapper;
import com.jerkin.dubbo.model.StudentDo;
import com.jerkin.facade.StudentFacade;
import com.jerkin.model.StudentRo;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @version V1.0
 * @ClassName: StudentFacadeImpl
 * @Description:
 * @author: huhongzhi
 * @date: 2020/8/1 19:05
 */
@Service(version = "1.0.0",interfaceClass=StudentFacade.class)
public class StudentFacadeImpl implements StudentFacade {
    @Autowired
    private AccountInfoMapper accountInfoMapper;


    @Override
    public void update(Long id, Long amount) throws InterruptedException {
        accountInfoMapper.update(id,amount);
        Thread.sleep(2000);
    }
}
